﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Example02.aspx.cs" Inherits="Chapter25.Example02" %>

<!DOCTYPE html>

<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>代码清单 25-2 测试某个功能</title>
    <meta name="author" content="Adam Freeman" />
    <meta name="description" content="A simple example" />
</head>
<body>
    <p id="paratext">
        There are lots of different kinds of fruit - there are you over 500 
        varieties of banana alone. By the time we add the 
        countless types of apples, oranges, and other 
        well-known fruit, we are faced with thousands of choices.
        <img src="images/apple.png" alt="apple" />
    </p>
    <script>
        var images;
        if (document.querySelectorAll) {
            images = document.querySelectorAll("#paratext > ima");
        } else {
            images = document.getElementById("paratext").getElementsByTagName("img");
        }

        for (var i = 0; i < images.length; i++) {
            images[i].style.border = "thick solid black";
            images[i].style.padding = "4px";
        }
    </script>
</body>
</html>
